class Student(object):
    count=0
    def __init__(self,name):
        self.name=name
        Student.count+=1
        print('%s%s%s%s'%(self.name,'同学你好，恭喜你添加成功，目前在籍人数为：',Student.count,'人'))

def count_student():
    print('目前在籍学生共',Student.count,'人')

a=Student('yzy')
b=Student('ldh')
c=Student('zjl')
print('目前在籍学生共',Student.count,'人')
count_student()
